<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title></title>
    <meta name="viewport" content="width=1000, initial-scale=1.0, maximum-scale=1.0">
    <!-- Loading Bootstrap -->
    <link href="/static/admin/Flat/dist/css/vendor/bootstrap.min.css" rel="stylesheet">
    <!-- Loading Flat UI -->
    <link href="/static/admin/Flat/dist/css/flat-ui.css" rel="stylesheet">
    <link href="/static/admin/Flat/docs/assets/css/demo.css" rel="stylesheet">
    <link rel="shortcut icon" href="/static/admin/Flat/img/favicon.ico">
    <!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
    <!--[if lt IE 9]>
    <script src="dist/js/vendor/html5shiv.js"></script>
    <script src="dist/js/vendor/respond.min.js"></script>
    <![endif]-->
</head>
<body>
<form action="/admin/goodlink/{$data.wid}" method="post" enctype="multipart/form-data">
    <input type="hidden" name="_method" value="PUT" >
    <div class="alert alert-success">编辑友链</div>
    <div class="form-group">
        <label for="webname">名称</label>
        <input id="webname" class="form-control" type="text" required="" name="webname" value="{$data.webname}">
    </div>

    <div class="form-group">
        <label for="weblogo">logo</label>
        <input id="weblogo" class="form-control" type="file" name="weblogo">
        {if condition="$data['weblogo'] eq ''"}无缩略图
        {else /}
        <img width="72px" height="36px" src="{$data.weblogo}">
        {/if}
    </div>
    <div class="form-group">
        <label for="weblink">url地址</label>
        <input id="weblink" class="form-control" type="text" required="" name="weblink" value="{$data.weblink}">
    </div>
    <div class="form-group">
        <label for="weborder">排序</label>
        <input id="weborder" class="form-control" type="text" placeholder="请输入分类排序" required="" name="weborder"
               value="{$data.weborder}">
    </div>
    <button class="btn btn-primary btn-block" type="submit"> 确定</button>
</form>
</body>
</html>
